package com.webster.isw.core.gen.entity;

import java.io.Serializable;
import java.util.Date;

public class ScSession implements Serializable {
    private String id;

    private Date sessionCreateAt;

    private Date createAt;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public Date getSessionCreateAt() {
        return sessionCreateAt;
    }

    public void setSessionCreateAt(Date sessionCreateAt) {
        this.sessionCreateAt = sessionCreateAt;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ScSession other = (ScSession) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSessionCreateAt() == null ? other.getSessionCreateAt() == null : this.getSessionCreateAt().equals(other.getSessionCreateAt()))
            && (this.getCreateAt() == null ? other.getCreateAt() == null : this.getCreateAt().equals(other.getCreateAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSessionCreateAt() == null) ? 0 : getSessionCreateAt().hashCode());
        result = prime * result + ((getCreateAt() == null) ? 0 : getCreateAt().hashCode());
        return result;
    }
}